/**
 * Created by zhaohenry on 2017/6/12.
 */
import * as types from './mutation-types'

export default {
  addTab ({ commit }, tab) {
    commit(types.ADD_TAB_LIST, tab)
  },
  deleteTab ({ commit }, tab) {
    commit(types.DEL_TAB_LIST, tab)
  },
  modifyTab ({ commit }, tab) {
    commit(types.MODIFY_TAB_LIST, tab)
  },
  clearTab ({ commit }) {
    commit(types.CLEAR_TAB_LIST)
  },
  modifyTitle ({ commit }, title) {
    commit(types.MODIFY_TITLE, title)
  },
  modifyAuth ({ commit }, status) {
    commit(types.MODIFY_AUTH, status)
  }
}
